import { createRouter, createWebHistory } from 'vue-router';
import Home from '../components/HelloWorld.vue';
import text from '../components/text.vue';

const routes = [
  { path: '/', name: 'Home', component: Home,redirect:'/text' },
  { path: '/text', name: 'About', component: text },

];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
